import request from "@/utils/request";

// 接口应用分布
export function home_app() {
  return request({
    url: "/system/bootstrap/asset/app",
    method: "get"
  });
}

// 接口动态脱敏
export function home_list() {
  return request({
    url: "/system/bootstrap/asset/list",
    method: "get"
  });
}

// 接口动态脱敏
export function home_line() {
  return request({
    url: "/system/bootstrap/asset/line",
    method: "get"
  });
}

// 左上角统计数据-敏感分类-敏感分级-敏感字段
export function appAssetNum() {
  return request({
    url: "/system/bootstrap/card/appAssetNum",
    method: "get"
  });
}

export function alarmCount() {
  return request({
    url: "/system/bootstrap/card/alarmCount",
    method: "get"
  });
}

export function tableNum() {
  return request({
    url: "/system/bootstrap/card/tableNum",
    method: "get"
  });
}

// 扩散图
export function home_spread() {
  return request({
    url: "/system/bootstrap/spread",
    method: "get"
  });
}

//重要数据TOP5
export function home_taglist() {
  return request({
    url: "/system/bootstrap/card/taglist",
    method: "get"
  });
}
//敏感数据TOP10
export function home_wordlist() {
  return request({
    url: "/system/bootstrap/card/wordlist",
    method: "get"
  });
}
//告警趋势
export function home_alarm() {
  return request({
    url: "/system/bootstrap/card/alarm",
    method: "get"
  });
}
//数据分类Top5
export function home_datatype() {
  return request({
    url: "/system/bootstrap/card/datatype",
    method: "get"
  });
}
// 扩散字段{

export function home_table() {
  return request({
    url: "/system/bootstrap/table",
    method: "get"
  });
}

// 告警等级
export function home_level() {
  return request({
    url: "/system/bootstrap/alarm/level",
    method: "get"
  });
}

// 告警类型
export function home_type() {
  return request({
    url: "/system/bootstrap/alarm/type",
    method: "get"
  });
}
//  敏感字段Top10 数据分类Top5 数据分级Top5 扩散表Top5
export function getSpreadOverview(params) {
  return request({
    url: "/spread/spreadDateStat/aggTermStat",
    method: "get",
    params
  });
}

//扩散总数
export function totalDiffusion(data) {
  return request({
    url: "/spread/spreadDateRank/spread",
    method: "post",
    data
  });
}
//下拉列表
export function spreadCatatoryList(params) {
  return request({
    url: "/spread/spreadDateStat/spreadCatatoryList",
    method: "get",
    params
  });
}

//心跳
export function getLogout(params) {
  return request({
    url: "/system/login/getLogout",
    method: "get",
    params
  });
}
//敏感字段top10和敏感表所属业务系统top5

export function queryWordAndSensTable(params) {
  return request({
    url: "/system/bootstrap/db/queryWordAndSensTable",
    method: "get",
    params
  });
}
//数据分级统计

export function dataLevelStatisticsList(params) {
  return request({
    url: "/system/bootstrap/asset/dataLevelStatisticsList",
    method: "get",
    params
  });
}
//数据分类统计

export function dataTypeStatistics(params) {
  return request({
    url: "/system/bootstrap/asset/dataTypeStatistics",
    method: "get",
    params
  });
}

//敏感表
export function querySensTableList(data) {
  return request({
    url: "/system/bootstrap/db/querySensTableList",
    method: "get",
    params: data
  });
}

export function alarmCountNew(data) {
  return request({
    url: "/system/bootstrap/card/alarmCount",
    method: "get",
    params: data
  });
}
export function querySensDataBaseNew(data) {
  return request({
    url: "/system/bootstrap/db/querySensDataBase",
    method: "get",
    params: data
  });
}
export function querySensTableListNew(data) {
  return request({
    url: "/system/bootstrap/db/querySensTableList",
    method: "get",
    params: data
  });
}
export function getSenseInterfaceCountNew(data) {
  return request({
    url: "/system/bootstrap/db/getSenseInterfaceCount",
    method: "get",
    params: data
  });
}
